﻿using System;
using HHL_Util;

namespace HHL_Acc.HHL_EntityAcc
{
    public class SmiImports
    {
        public string ImpId
        {
            get { return _impId; }
            set { _impId = value; }
        }

        public string Login
        {
            get { return _login; }
            set { _login = value; }
        }

        public string Importer
        {
            get { return _importer; }
            set { _importer = value; }
        }

        public string ImpMethod
        {
            get { return _impMethod; }
            set { _impMethod = value; }
        }

        public DateTime ImpDate
        {
            get { return _impDate; }
            set { _impDate = value; }
        }

        public int? ImpHour
        {
            get { return _impHour; }
            set { _impHour = value; }
        }

        public int? ShiftId
        {
            get { return _shiftId; }
            set { _shiftId = value; }
        }

        public int? IssueYear
        {
            get { return _issueYear; }
            set { _issueYear = value; }
        }

        public int? ImpNumber
        {
            get { return _impNumber; }
            set { _impNumber = value; }
        }

        public int? Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DateTime LastModified
        {
            get { return _lastModified; }
            set { _lastModified = value; }
        }

        public string Notes
        {
            get { return _notes; }
            set { _notes = value; }
        }

        public string NotesUnicode
        {
            //set { _notes = CommonUtil.ConvertUnicode2Vni(value); }
            get { return CommonUtil.ConvertVni2Unicode(_notes); }
        }
        public string NotesVni
        {
            set { _notes = CommonUtil.ConvertUnicode2Vni(value); }
        }

        public int? Idx
        {
            get { return _idx; }
            set { _idx = value; }
        }

        public string ImpName
        {
            get { return _impName; }
            set { _impName = value; }
        }

        public string ImpNameUnicode
        {
            get { return CommonUtil.ConvertVni2Unicode(_impName); }
            //set { _impNameUnicode = value; }
        }

        public string ImpMethodName
        {
            get { return _impMethodName; }
            set { _impMethodName = value; }
        }

        public string ImpMethodNameUnicode
        {
            get { return CommonUtil.ConvertVni2Unicode(_impMethodName); }
            //set { _impMethodNameUnicode = value; }
        }

        public string Deliver
        {
            get { return _deliver; }
            set { _deliver = value; }
        }

        public int? Qty
        {
            get { return _qty; }
            set { _qty = value; }
        }

        private String _impId;
        private String _login;
        private String _importer;
        private String _impMethod;
        private DateTime _impDate;
        private int? _impHour;
        private int? _shiftId;
        private int? _issueYear;
        private int? _impNumber;
        private int? _status;
        private DateTime _lastModified;
        private String _notes;

        private int? _idx;
        private int? _qty;


        private String _impName;
        private String _impMethodName;
        private String _deliver;
    }
}